﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csharp_books_415.Data.Models
{
    public class Book
    {
        public int BookId { get; set; } // PK - CLASSNAME_ID

        public string Title { get; set; }
        public DateTime Published { get; set; }
        public int PageCount { get; set; }
        public bool IsBestSeller { get; set; }

        // FK Author
        public int AuthorId { get; set; }
        public virtual Author Author { get; set; } // virtual

        // 
        public virtual List<Review> Reviews { get; set; } // virtual
    }
}
